﻿using System.Diagnostics;
using CommunityToolkit.Mvvm.ComponentModel;
using CommunityToolkit.Mvvm.Input;

namespace Test.ViewModels;

public partial class MainViewModel : ViewModelBase
{
    [ObservableProperty]
    private string _greeting = "Welcome to Avalonia!";


    // <summary>
    /// 加载
    /// </summary>
    //private void Window_Loaded(object sender, RoutedEventArgs e)
    [RelayCommand]
    //private void Loaded(RoutedEventArgs e)
    private void Loaded()
    {
        Debug.WriteLine("Loaded");
    }

}
